FROM bellsoft/liberica-openjdk-debian:8u422

MAINTAINER Ann

RUN mkdir -p /an/server/logs \
    /an/server/temp \
    /an/skywalking/agent

WORKDIR /an/server

ENV SERVER_PORT=8988

EXPOSE ${SERVER_PORT}

ADD ./target/ann-admin.jar ./app.jar

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
            # 应用名称 如果想区分集群节点监控 改成不同的名称即可
#            "-Dskywalking.agent.service_name=an-server", \
#            "-javaagent:/an/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]
